<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php include_once 'util.php'; ?>
        <?php
        // 函数
        /**
         * 函数定义
         * function 函数名称(参数1，，，，参数n){
         *     php代码块
         * }
         * 
         * 调用函数
         * 函数名称(参数1，，，，参数n);
         */
         function go_forward($msg,$url){
             echo "<script>alert('$msg');location.href='$url';</script>";
         }
//       go_forward("登录成功", "index.php");
//       go_forward("登录失败", "login.php");
         function go_back($msg){
            echo "<script>alert('$msg');history.back();</script>"; 
         }
         
         function generateNum(){
             return date("yymdhms").randomkeys(4);
         }
//         echo generateNum();
        ?>
    </body>
</html>
